For information about scripting the <FRAMESET>
element, see the Scripting the <FRAMESET> element topic.
<FRAMESET>
This is the main container for a Frame. The FRAMESET
element has a matching end element, and within the FRAMESET
you can only have other nested FRAMESET
, FRAME
, or the NOFRAMES
elements.
ROWS="row_height_value_list"
This takes a list of values, separated by comma marks. They can represent either absolute pixel, percentage, or relative scaling values. The total set by the values given in the ROWS
attribute should not exceed 100% (as the total rows are extended across the whole available browser display window).
If any of the values are single numerical values then these are considered to be absolute pixel values. It is not recommended to fix a frame set by using a complete set of pixel values, because browsers use a variety of different screen resolutions when viewing documents, so the layout may become distorted. Percentage values can be given for this attribute. If the total percentage values given exceed 100% then all values will be scaled down by the browser so that the total is 100%. The remaining value option is to use a * character. This tells the browser that the frame is a relative size frame and should be displayed accordingly. Numerical values can be used with the * character, to scale the relative frame sections within the browser window.
E.g.
To specify a three vertical framed layout, where the first section uses 20% of the display window, the second uses 100 pixels and the third section uses the remaining screen, use:
<FRAMESET ROWS="20%, 100, *">
To split the layout into two vertical frames, the first using a quarter of the display window, the second using three-quarters of the window, use:
<FRAMESET ROWS="25%, 75%">
NOTE : This would be exactly the same as using <FRAMESET ROWS="*, 3*">
COLS="column_width_list"
The COLS
attribute takes as its value a comma separated list of values that is of the exact same syntax as the list described above for the ROWS
attribute.
The FRAMESET
element can be nested. In this way, frame sections can be set up where the display window can be split into either horizontal or vertical sections, with any of these being further sub-divided by nested FRAMESET
elements.
BORDER="pixel value"
Netscape allows the global setting of frame border thicknesses by using this attribute within the <FRAMESET>
element. It accepts a pixel value, which determines the thickness of any borders used within the frame set.
BORDERCOLOR="#rrggbb or colour name"
This Netscape specific attribute sets the colours for the border of the specified frameset. It can also be used in the <FRAME>
element (see below) for setting the border colours of a specific frame. It accepts any #rrggbb hex triplet as a value. Any BORDERCOLOR
setting in a <FRAMESET>
element is over-ridden by a setting present in the <FRAME>
element.
FRAMEBORDER="yes|no|0"
Netscape claims support for this attribute (in a similar fashion to that supported by Internet Explorer in the <FRAME>
element) to set the borders globally for an entire <FRAMESET>
, using values of either "yes" or "no". However, on testing, didn't appear to. Internet Explorer does support the use of this attribute in the <FRAMESET>
element, using the value "0" to produce borderless frames. To produce this effect, it also requires using the FRAMESPACING="0" attribute. (The FRAMESPACING
attribute sets the amount of 'grey' space between each frame of the frame set.) See the <FRAME>
topic for an example of browser-indepenent borderless frames.